package com.cy.核心编程.thead.basic.join;

/**
 * join会让主线程等待子线程跑完，再继续执行
 */
public class MyTread extends Thread{
    @Override
    public void run() {
        for (int i = 0; i < 200; i++) {
            System.out.println("我是子线程："+i);
        }
    }
}
